package itsmap.systematic.exam;

import java.io.Serializable;

import android.graphics.Color;

public class PatientClass implements Serializable{
	
	private String mCpr;
	private String mName;
	private String mColor;
	private String mNote;
	private boolean mNewz = false;
	private String mState = "NONE";

	
	public PatientClass(final String cpr, final String name, final String color, final String note){
		mCpr = cpr;
		mName = name;
		mColor = color;
		mNote = note;
	}
	
	public void setState(final String state){
		mState = state;
	}
	
	public String getState(){
		return mState;
	}
	
	public void setNewz(final boolean newz){
		mNewz = newz;
	}
	
	public boolean getNewz(){
		return mNewz;
	}
	
	public void setNote(final String note){
		mNote = note;
	}
	public String getNote(){
		return mNote;
	}
	
	public void setColor(final String color){
		mColor = color;
	}
	
	public int getColor() {
		if(mColor.equals("RED"))
			return Color.RED;
		else if(mColor.equals("ORANGE"))
			return Color.MAGENTA;
		else if(mColor.equals("YELLOW"))
			return Color.YELLOW;
		else if (mColor.equals("GREEN"))
			return Color.GREEN;
		else if(mColor.equals("BLUE"))
			return Color.BLUE;
		else
			return Color.WHITE;
	}
	
	public String getColor(String noUse){
		if(mColor.equals("RED"))
			return "Red";
		else if(mColor.equals("ORANGE"))
			return "Orange";
		else if(mColor.equals("YELLOW"))
			return "Yellow";
		else if (mColor.equals("GREEN"))
			return "Green";
		else if(mColor.equals("BLUE"))
			return "Blue";
		else
			return "White";
	}
	public void setCpr(final String cpr){
		mCpr = cpr;
	}
	public String getCpr(){
		return  mCpr;
	}
	
	public void setName(final String name){
		mName = name;
	}
	
	public String getName(){
		return mName;
	}
	
	

}
